/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.diagram.activity.editpart;

import org.eclipse.uml2.uml.ObjectFlow;

import com.cea.papyrus.core.editor.ModelManager;
import com.cea.papyrus.diagraminterchange2.di2.GraphEdge;
import com.cea.papyrus.diagraminterchange2.di2.Uml1SemanticModelBridge;

/**
 * Controller of an ObjectFlow
 *
 * @author Gilles Cannenterre
 * @since 26 mars 07
 */
public class ObjectFlowEditPart extends ActivityEdgeEditPart {

	public ObjectFlowEditPart(GraphEdge graphEdge, ModelManager modelManager) {
		super(graphEdge, modelManager);
	}

	/* (non-Javadoc)
	 * @see com.cea.papyrus.core.common.editpart.GraphEdgeEditPart#getUmlElement()
	 */
	@Override
	public ObjectFlow getUmlElement() {
		return (ObjectFlow) ((Uml1SemanticModelBridge) (getGraphEdge()).getSemanticModel()).getElement();
	}
}
